/*
 * Copyright (C) 2013 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

@media (max-width: 767px) {
  .assessing.no-headers.with-right-side {
    min-width: 0 !important;
  }

  .assessing.no-headers {

    body {
      padding: 0;
    }

    .ic-Layout-wrapper {
      min-width: 0 !important;
    }

    .ic-Layout-wrapper,
    .ic-Layout-columns {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      /*max-width: 100%;*/
      min-width: 320px !important;
      width: auto;
    }

    #question_list {
      padding-left: 10px;
    }

    .question .flag_question {
      left: 8px;
      top: -3px;
    }

    .question .question_name {
      padding-left: 15px;
    }

    .question {
      margin: 20px 0 !important;
      min-width: 99% !important;
    }

    #not_right_side {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      top: 45px;
      bottom: 0;
      overflow: auto;
      -webkit-overflow-scrolling: touch;
    }

    #right-side > div > * {
      display: none;
    }

    #right-side-wrapper {
      border-right: none;
      width: 100%;
      height: 45px
    }

    #right-side > div > #quiz-time-elapsed {
      display: block;
      position: fixed;
      top: 0;
      right: 0;
      left: 0;
      background: #fff;
      border: 1px solid #ccc;
    }
  }
}
